import time
import os
from loguru import logger

# 当前项目路径
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# 日志文件路径
LOG_FILE_PATH = os.path.join(ROOT_PATH, 'log', f'{time.strftime("%Y_%m_%d", time.localtime())}.log')

# 日志对象设置
logger.add(LOG_FILE_PATH, encoding='utf-8')
